//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by FernFlower decompiler)
//

package com.golang.api.util;

/** @deprecated */
@Deprecated
public enum ResultEnum implements StatusEnumSupport {
    SUCCESS(200, "SUCCESS"),
    ERROR(500, "抱歉，系统出现异常，请稍后再试"),
    ILLEGAL_ARGUMENT(100, "参数非法"),
    OK(200, "OK"),
    SECURE_TIMEOUT(110, "安全认证失败，时间过期"),
    SECURE_SIGN_ERROR(120, "安全认证失败，签名错误"),
    GATEWAY_ERROR(600, "抱歉，系统出现异常，请稍后再试"),
    ILLEGAL_REQUEST_SIGN_MISSING(10011, "非法请求，缺少系统级参数（app_key,sign,timestamp）"),
    ILLEGAL_REQUEST_KEY_UNKNOWN(10012, "非法请求，未知的调用方"),
    ILLEGAL_REQUEST_TIMEOUT(10013, "非法请求，请求过期"),
    ILLEGAL_REQUEST_SIGN_ERROR(10014, "非法请求，签名sign验证失败"),
    ILLEGAL_REQUEST_TOKEN_MISSING(10021, "您尚未登录，请登录"),
    ILLEGAL_REQUEST_TOKEN_ERROR(10022, "您的登录已过期，请重新登录"),
    VERSION_UPDATE_INFO(10031, "版本过低，请升级到新版本");

    private final Integer code;
    private final String message;

    private ResultEnum(Integer code, String message) {
        this.code = code;
        this.message = message;
    }

    public Integer getCode() {
        return this.code;
    }

    public String getMessage() {
        return this.message;
    }

    public boolean equalsCode(Integer code) {
        return this.code.equals(code);
    }
}
